From 2613e412d7eb14202b6505eed352f44e0ac5a328 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 5 Apr 2011 17:36:42 -0400 Subject: [PATCH] combobox: don't add the button style class to the whole widget It already has a toggle button inside, and this way we cannot theme them separately. https://bugzilla.gnome.org/show_bug.cgi?id=646882 --- gtk/gtkcombobox.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 6f564604e7..fb96edc097 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -4579,7 +4579,6 @@ gtk_combo_box_constructor (GType type, GObject *object; GtkComboBox *combo_box; GtkComboBoxPrivate *priv; - GtkStyleContext *context; object = G_OBJECT_CLASS (gtk_combo_box_parent_class)->constructor (type, n_construct_properties, construct_properties); @@ -4602,9 +4601,6 @@ gtk_combo_box_constructor (GType type, gtk_combo_box_check_appearance (combo_box); - context = gtk_widget_get_style_context (GTK_WIDGET (combo_box)); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON); - if (priv->has_entry) { GtkWidget *entry; -- 2.30.2